/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.opensource.jdom.taggen.html.tag;

import org.opensource.jdom.taggen.html.I18nAttributes;

/**
 *
 * can be used to assign a title to the styles within the element. This can be
 * then be referenced by browsers or scripting languages to either disable the
 * styles or switch between alternate style sheets.
 *
 * <h2>Example</h2> <pre><code class="html">
 * <strong>&lt;style type="text/css"&gt;</strong>
 * &nbsp;&nbsp;body {
 * &nbsp;&nbsp;&nbsp;&nbsp;color: red;
 * &nbsp;&nbsp;&nbsp;&nbsp;background-color: yellow;
 * &nbsp;&nbsp;&nbsp;&nbsp;font-size: 80%;
 * &nbsp;&nbsp;}
 * &nbsp;&nbsp;p {
 * &nbsp;&nbsp;&nbsp;&nbsp;line-height: 1.5em;
 * &nbsp;&nbsp;}
 * <strong>&lt;/style&gt;</strong>
 * </code></pre>
 *
 * @see Head
 * @see Link
 *
 * @author sergio.valdez
 */
public class Style extends I18nAttributes{

    /**
     * is used to specify the content type which is generally text/css.
     */
    private String type;
    /**
     * can be used to specify which media the styles are associated to. A value
     * such as screen, print, projection, braille, speech or all can be used or
     * a combination in a comma-separated list
     */
    private String media;
    /**
     * can be used to assign a title to the styles within the element.
     * This can be then be referenced by browsers or scripting languages to
     * either disable the styles or switch between alternate style sheets.
     */
    private String title;

    public Style(String type) {
        this.type = type;
    }

    /**
     * is used to specify the content type which is generally text/css.
     * @return the type
     */
    public String getType() {
        return type;
    }

    /**
     * is used to specify the content type which is generally text/css.
     * @param type the type to set
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * can be used to specify which media the styles are associated to. A value
     * such as screen, print, projection, braille, speech or all can be used or
     * a combination in a comma-separated list
     * @return the media
     */
    public String getMedia() {
        return media;
    }

    /**
     * can be used to specify which media the styles are associated to. A value
     * such as screen, print, projection, braille, speech or all can be used or
     * a combination in a comma-separated list
     * @param media the media to set
     */
    public void setMedia(String media) {
        this.media = media;
    }

    /**
     * can be used to assign a title to the styles within the element.
     * This can be then be referenced by browsers or scripting languages to
     * either disable the styles or switch between alternate style sheets.
     * @return the title
     */
    public String getTitle() {
        return title;
    }

    /**
     * can be used to assign a title to the styles within the element.
     * This can be then be referenced by browsers or scripting languages to
     * either disable the styles or switch between alternate style sheets.
     * @param title the title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }

}
